trigger BuildReciprocalRelationship on Thesaurus__c (after insert) {
if (EndTheRecursiveTrigger.endTheTriggerCallStack == false) {
	List<Thesaurus__c> relationships = new List<Thesaurus__c> ();
        System.debug(Trigger.new.size()+' '+Trigger.size);
        for (Thesaurus__c r : Trigger.new) {
            Thesaurus__c reverseRelationship = new Thesaurus__c();
            reverseRelationship.Search_Term__c = r.Related_Word__c;
            reverseRelationship.Related_Word__c = r.Search_Term__c;
            reverseRelationship.Relationship_Type__c =
                r.Relationship_Type__c;
            
            relationships.add(reverseRelationship);
        }
        EndTheRecursiveTrigger.endTheTriggerCallStack =true;
        insert relationships;

}
EndTheRecursiveTrigger.endTheTriggerCallStack=false;
}